<%@page import="comment.CommentMyBa"%>
<%@page import="comment.CommentVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%request.setCharacterEncoding("utf-8"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>댓글 수정화면</title>
<style>
#com_main{
	width:600px;
	height:300px;
}
#co_modi_btns{
	margin-right:20px;
	float:right;
}
</style>
<script>
function gogoPage(no){
	location.href="${pageContext.request.contextPath}/homepage/index.jsp?inc_content=./board/board_view.jsp&bo_no="+no;
}

function dele(){
	location.href = 'index.jsp?inc_content=./board/board_list.jsp';
	this.close();
	
}

</script>
</head>
<body>
<jsp:useBean id="commentVo" class="comment.CommentVo"></jsp:useBean>
<jsp:setProperty property="*" name="commentVo"/>
<%
/* out.print(commentVo.getCO_content()); */
String no = request.getParameter("BO_no");
String cono = request.getParameter("CO_no");
String content = request.getParameter("CO_content");
/* out.print("n1="+no+"\n");
out.print("--");
out.print("cc=" + content+"\n");
out.print("--");
out.print("c1="+cono+"\n"); */

CommentMyBa comment = new CommentMyBa();
comment.setCommentVo(commentVo);
comment.setBO_no(no);
comment.setCO_no(cono);
int cnt = comment.modify();

 

%>
<%if(cnt>0){%>
<!-- 수정됨 -->
<script>gogoPage('<%=comment.getBO_no()%>')</script>
<%}else{%>
수정중 오류가 발생하였습니다. 관리자에게 문의해주세요.<br/>
<input type="button" value="확인" onclick="">
<%}%>>

</body>
</html>



